﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.Json.Serialization;

namespace Process.Model
{
    public class FlowProcessRelation : Entity
    {
        /// <summary>
        /// 工艺流程ID（外键）
        /// </summary>
        public int ProcessFlowId { get; set; }

        /// <summary>
        /// 工序ID（外键）
        /// </summary>
        public int ProcessId { get; set; }

        /// <summary>
        /// 工序在工艺流程中的排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 该工序在当前流程中的备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 关联的工艺流程
        /// </summary>
        [JsonIgnore]
        public virtual ProcessFlow ProcessFlow { get; set; }

        /// <summary>
        /// 关联的工序
        /// </summary>
        public virtual Processinfo Process { get; set; }

    }
}
